From: Florian Müllner Date: Sat, 18 Mar 2023 16:54:35 +0000 (+0100) Subject: workspacesView: Update visibility after updating workspaces X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~371^2^2~77 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=95386a14235155e4390253c77ede8877b525b9e3;p=gnome-shell.git workspacesView: Update visibility after updating workspaces When the number of workspaces changes, it is possible that one of the visible (non-active) workspaces is removed, and another invisible workspace moves in its place. Make sure that workspaces are shown as necessary in this case. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6519 Part-of: --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 29d1c65f1..22e66f77a 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -118,7 +118,6 @@ class WorkspacesView extends WorkspacesViewBase { global.window_manager.connectObject('switch-workspace', this._activeWorkspaceChanged.bind(this), this); - this._updateVisibility(); } _getFirstFitAllWorkspaceBox(box, spacing, vertical) { @@ -465,6 +464,7 @@ class WorkspacesView extends WorkspacesViewBase { } this._updateWorkspacesState(); + this._updateVisibility(); } _activeWorkspaceChanged(_wm, _from, _to, _direction) {